<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/common/header.jsp"%> 
<html>
<head>  
  <script type="text/javascript">
  function doSearch() {	 
	  grid.load({
			channel_no: $('#channel_no').val()						
		});
  }
  
  function addChannelinf(url){	  
	  commonDetail(url,"save","channelinfTableId");
  }
  function modifyChannelinf(url){	  
	  commonDetail(url,"update","channelinfTableId");
  }
  function deleteChannelinf(url){	  
	  commonDel(url,"delete","channelinfTableId");
  }
  var grid;
  $(document).ready(function() {
	  grid = $("#channelinfTableId").jpgrid({
			url: "getChannelInfListJson.do",
			columns: [
				{title: "通道编号", field: "CHANNEL_NO",width:100},
				{title: "通道名称", field: "CHN_NM"},
				{title: "通道类型", field: "CHN_TP",width:100},
				{title: "通道对应表", field: "CHN_PRMTB"},
				{title: "交易频率(秒)", field: "TRANS_INTERVAL",width:80},
				{title: "切换商户时间(分钟)", field: "CHANGE_MCHNT_TM",width:110}
			]
		});	  
  });
  </script>
</head>

<body class="easyui-layout list_body"  >
	<form id="channelinfForm" name="channelinfForm">
		<div class="list_body_north" data-options="region:'north'"  border="false" >
			<!-- 查询表单 -->
			<div  class="datagrid-toolbar" border="false"  >
				<span>通道编号:</span>
				<input id="channel_no" type="text" name="channel_no"  class="easyui-textbox"  >		
				<a href="#" class="easyui-linkbutton btn" iconCls="icon-search" onclick="doSearch() ">查询</a> 
				<a href="#" class="easyui-linkbutton btn" iconCls="icon-reload" onclick="resetForm() ">重置</a>					
			</div>
			<!-- 自定义标签工具栏 -->
			<jiepos:buttonOperateTag menuCode="${menuCode}"></jiepos:buttonOperateTag>	
		</div>
		<div data-options="region:'center'" border="false"  class="list_body_center">		
			<!-- 表格 -->
			<table id="channelinfTableId" fit="true"></table>
		</div>
	</form>
</body>
 </html>
